import request from '@/utils/request'

//拿到CDK类列表
export function getCdkTypeList (params) {
    return request({
        url: '/api/cdkType/getByGameId',
        method: 'get',
        params
    })
}

//拿到当前平台渠道列表
export function getPlatformChannelList (params) {
    return request({
        url: '/api/channel/getChannelListByPlatform',
        method: 'get',
        params
    })
}

//拿到渠道列表(不分平台)
export function getChannelList (params) {
    return request({
        url: '/api/channel/getChannelList',
        method: 'get',
        params
    })
}


//新增CDK类
export function addCdkType (data) {
    return request({
        url: '/api/cdkType/add',
        method: 'post',
        data
    })
}

//修改CDK类
export function updateCdkType (data) {
    return request({
        url: '/api/cdkType/update',
        method: 'post',
        data
    })
}

//删除CDK类
export function delCdkType (data) {
    return request({
        url: '/api/cdkType/del',
        method: 'post',
        data
    })
}
